<?php $this->load->view('config/header');?>
<h1>List Detail Content <small>form entry</small></h1>
<ol class="breadcrumb">
  <li><a href="<?php echo site_url()?>home"><i class="icon-dashboard"></i> Dashboard</a></li>
  <li><a href="<?php echo site_url()?>listcontent"><i class="icon-th-list"></i> List Content</a></li>
  <li><a href="<?php echo site_url()?>listdetailcontent/index/<?php echo @$listcontent[0]['id_list']?>"><i class="icon-th-list"></i> List Detail Content</a></li>
  <li class="active"><i class="icon-file-alt"></i> Form <?php echo $mode; ?></li>
</ol>

<form class="form-horizontal" role="form" method="post" action="<?php echo site_url() ?>listdetailcontent/<?php echo $action; ?>" enctype="multipart/form-data">
	<input type="hidden" class="form-control" name="id_listdet" value="<?php echo @$detail[0]['id_listdet']?>">
	<input type="hidden" class="form-control" name="id_list" value="<?php echo @$listcontent[0]['id_list']?>">
	<input type="hidden" class="form-control" name="date_listdet" value="<?php echo @$detail[0]['date_listdet']?>">

	<div class="form-group">
		<label for="title_listdet" class="col-lg-2 control-label">Title Content</label>
		<div class="col-lg-6">
			<input type="text" class="form-control" name="title_listdet" value="<?php echo @$detail[0]['title_listdet']?>" >
		</div>
	</div>
	<div class="form-group">
		<label for="file_listdet" class="col-lg-2 control-label">File Content</label>
		<div class="col-lg-6">
			<?php if(@$detail[0]['file_listdet'] == "" || @$detail[0]['file_listdet'] == "0"):?>
				<input type="file" class="form-control" name="file_listdet"></input>
			<?php else:?>
				<input type="text" class="form-control" name="file_listdet" value="<?php echo @$detail[0]['file_listdet']?>" readonly="readonly"/>
			<?php endif;?>
		</div>
	</div>
	<div class="form-group">
		<label for="text_listdet" class="col-lg-2 control-label">Description Content</label>
		<div class="col-lg-10">
			<textarea name="text_listdet" class="ckeditor"><?php echo @$detail[0]['text_listdet']?></textarea>
		</div>
	</div>
	<div class="form-group">
		<div class="col-lg-offset-2 col-lg-10">
			<input type="submit" name="submit" value="Simpan" class="btn btn-primary"/>
			<a href="<?php echo site_url()?>listdetailcontent/index/<?php echo @$listcontent[0]['id_list']?>" class="btn btn-primary">Batal</a>
		</div>
	</div>
</form>

<?php $this->load->view('config/footer');?>